//
//  DMWithdrawDepositVC.m
//  DistributionMall
//
//  Created by JHnoplan on 2018/10/17.
//  Copyright © 2018年 JHnoplan. All rights reserved.
//

#import "DMWithdrawDepositVC.h"
#import "DMWithdrawDepositAccountVC.h"
#import "DMWithdrawDepositWXVC.h"
#import "DMWithdrawDepositBankVC.h"

@interface DMWithdrawDepositVC ()

@property (weak, nonatomic) IBOutlet UILabel *amountLb;
@property (weak, nonatomic) IBOutlet UILabel *wxAcountLb;
@property (weak, nonatomic) IBOutlet UILabel *zfbAcountLb;


@end

@implementation DMWithdrawDepositVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self startInit];
}

-(void)startInit {
    self.navigationItem.title = @"提现收入";
    self.view.backgroundColor = DMDefaultColor;
    //没账号时显示
//    _wxAcountLb.textColor = RGBCOLOR(159, 159, 159);
//    _zfbAcountLb.textColor = RGBCOLOR(159, 159, 159);
    
    //添加
    UIButton *rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    rightBtn.frame = CGRectMake(0, 0, 30, 30);
    rightBtn.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, -10);
    [rightBtn setImage:[UIImage imageNamed:@"tianjia"] forState:UIControlStateNormal];
    [rightBtn addTarget:self action:@selector(navRightClick) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightBtn];
    
}
-(void)navRightClick {
    DMWithdrawDepositAccountVC *vc = [DMWithdrawDepositAccountVC new];
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)buttonClick:(UIButton *)sender {
    if (sender.tag == 1) {
        //微信
        DMWithdrawDepositWXVC *vc = [DMWithdrawDepositWXVC new];
        [self.navigationController pushViewController:vc animated:YES];
    }else if (sender.tag == 2) {
        //支付宝
        DMWithdrawDepositWXVC *vc = [DMWithdrawDepositWXVC new];
        [self.navigationController pushViewController:vc animated:YES];
    }else if (sender.tag == 3) {
        //银行卡
        DMWithdrawDepositBankVC *vc = [DMWithdrawDepositBankVC new];
        [self.navigationController pushViewController:vc animated:YES];
    }
}


@end
